-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: add openTabsInCorrectGroup setting to open diff tabs in correct editor groups #6008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
db4834e to
8faa2a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The added 'fileEditingOptions' entries are still in English rather than Russian. Please update these strings with appropriate Russian translations.
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new 'fileEditingOptions' section is still in English. Please provide proper Turkish translations for these texts.
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'fileEditingOptions' block (including its description and the 'openTabsInCorrectGroup' texts) remains untranslated (in English). Please localize these strings into Vietnamese.
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new 'fileEditingOptions' section and its 'openTabsInCorrectGroup' strings are still in English. Please provide the appropriate Simplified Chinese translations.
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'fileEditingOptions' block (including description and 'openTabsInCorrectGroup' texts) remains in English. Please update these to proper Traditional Chinese translations.
| "description": "Configure how Roo opens and manages files in the editor", | |
| "description": "設定 Roo 如何在編輯器中開啟和管理檔案", |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
2b178bb to
78c3b9d
Compare
- Added openTabsInCorrectGroup setting to GlobalState type definition - Created UI toggle in AutoApproveSettings component within File Editing Options section - Added translation strings for the new UI elements - Implemented message handler in webviewMessageHandler.ts - Modified DiffViewProvider to accept provider reference and implement tab placement logic - Updated Task.ts to pass provider to DiffViewProvider - Added setting to ExtensionState and WebviewMessage types - Fixed TypeScript errors by adding openTabsInCorrectGroup to ClineProvider getState() This feature allows Roo to open diff editors and related tabs in the most logical editor group when working with multiple VS Code editor groups, improving navigation and organization for users with complex editor layouts. Fixes #6005
78c3b9d to
9dd88bb
Compare
|
To be implemented by @felixAnhalt, closing |
Summary
This PR implements the feature requested in #6005 to add an
openTabsInCorrectGroupsetting that controls where Roo diff tabs are opened in VS Code.Changes
openTabsInCorrectGroupsetting toglobal-settings.ts(default: false)DiffViewProviderto:Taskclass to pass the setting toDiffViewProviderBehavior
When
openTabsInCorrectGroupis enabled:When
openTabsInCorrectGroupis disabled (default):Testing
Related Issues
Fixes #6005
Acceptance Criteria Met
✅ Setting added with default value of false
✅ When enabled, diff tabs for open files appear beside the original in the same group
✅ When enabled, diff tabs for unopened files appear in the active group
✅ When disabled, all tabs open in the active group
✅ No unrelated tabs or groups are affected
Important
Adds
openTabsInCorrectGroupsetting to control diff tab placement in VS Code, with UI and state management updates.openTabsInCorrectGroupsetting toglobal-settings.ts(default: false).DiffViewProviderto open diff tabs in the same group as the original file ifopenTabsInCorrectGroupis enabled, otherwise in the active group.Taskclass to pass the setting toDiffViewProvider.openTabsInCorrectGroupinAutoApproveSettings.tsxandSettingsView.tsx.settings.jsonfor new setting.ExtensionStateContext.tsxto includeopenTabsInCorrectGroupin state and provide setter.openTabsInCorrectGroupinwebviewMessageHandler.tsfor state updates.This description was created by
for 9dd88bb. You can customize this summary. It will automatically update as commits are pushed.